/*
 * @Author: xiehangyun 
 * @Date: 2025-05-16 10:34:03 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-06-06 19:52:53
 */

import { GoodsData } from 'types/type';
import Api from '../../api/Api';
// import goods_36_json from "./product_36.json";
import goodsApi from 'src/api/goodsApi';


// 设计接口
class DesignApi extends Api {

    constructor() {
        super();
    }

    // 获取设计数据
    async getDesignById(id: number): Promise<GoodsData> {
        const goodsData = await goodsApi.getProductById(id);
        return goodsData;
        // return cloneDeep(goods_36_json);
    }

    // 保存商品
    saveProduct() {

    }

}

const designApi = new DesignApi();

export default designApi;